package com.pc.tas.export.expfilelist;

import org.json.JSONObject;

import java.sql.Timestamp;

public class ExpFileList {
	private String id;
	private String fileName;
	private String fileAddress;
	private int expType;
	private Timestamp operatingTime;
	
	
	public final static int EXP_TYPE_TRANSACTION = 1;
	public final static int EXP_TYPE_TRACE = 2;
	public final static int EXP_TYPE_LOGISTICS = 3;
	public final static int EXP_TYPE_SALES = 4;
	public final static int EXP_TYPE_MemberShopping = 5;
	public final static int EXP_TYPE_MemberVisit = 6;
	public final static int EXP_TYPE_MEMBERLIST = 7;
	public final static int EXP_TYPE_HotProduct = 8;
	public final static int EXP_TYPE_HourAnalyze = 9;
	public final static int EXP_TYPE_OrderStates = 10;
	public final static int EXP_TYPE_SalesSummary = 11;
	public final static int EXP_TYPE_ProductSales = 12;
	
	public JSONObject toJSON() throws Exception {
    	JSONObject efl = new JSONObject();
    	efl.put("id", this.getId());
    	efl.put("fileAddress", this.getFileAddress());
    	efl.put("fileName", this.getFileName());
    	efl.put("expType", this.getExpType());    
    	efl.put("operatingTime", this.getOperatingTime());  
    	return efl;
    }
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	
	public String getFileAddress() {
		return fileAddress;
	}
	public void setFileAddress(String fileAddress) {
		this.fileAddress = fileAddress;
	}
	public int getExpType() {
		return expType;
	}
	public void setExpType(int expType) {
		this.expType = expType;
	}
	public Timestamp getOperatingTime() {
		return operatingTime;
	}
	public void setOperatingTime(Timestamp operatingTime) {
		this.operatingTime = operatingTime;
	}
	
	public String getFileName() {
		return fileName;
	}
	public void setFileName(String fileName) {
		this.fileName = fileName;
	}
}
